Ext.define('BM.store.GoodsItems', {
    extend: 'Ext.data.Store',
    model: 'BM.model.GoodsItem',
    autoLoad: true,
    proxy: {
        type: 'ajax',
        api: {
        	//read: 'data/goodsItem.json',
        	read:'../goodsItem.do?method=goodsItemList',
        	update: 'data/updateToken.json'
    	},
        reader: {
            type: 'json',
            root: 'goodsItems',
            successProperty: 'success'
        }
    }
});